package com.theo.mapper;

import com.theo.entity.CommentInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Repository
public interface CommentInfoMapper extends BaseMapper<CommentInfo> {

    int saveCommentInfo(CommentInfo commentInfo);

    int deleteCommentInfo(Integer id);

    int updateCommentInfo(Integer id);

    List<CommentInfo> queryAllCommentInfo();

    List<CommentInfo> queryCommentInfoByTopicId(Integer id);

    CommentInfo queryCommentInfoById(Integer id);
}
